package com.ourway.entity.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 *
 * @author lwh
 * @date 2021/11/27
 */
@NoArgsConstructor
@Data
public class FeiShuSendMessageResponseVo implements Serializable {

    private int code;
    private String msg;
    private DataBean data;

    @NoArgsConstructor
    @Data
    public static class DataBean implements Serializable{

        private String message_id;
        private String root_id;
        private String parent_id;
        private String msg_type;
        private String create_time;
        private String update_time;
        private boolean deleted;
        private boolean updated;
        private String chat_id;
        private SenderBean sender;
        private BodyBean body;
        private String upper_message_id;
        private List<MentionsBean> mentions;

        @NoArgsConstructor
        @Data
        public static class SenderBean implements Serializable{

            private String id;
            private String id_type;
            private String sender_type;
            private String tenant_key;
        }

        @NoArgsConstructor
        @Data
        public static class BodyBean implements Serializable{

            private String content;
        }

        @NoArgsConstructor
        @Data
        public static class MentionsBean implements Serializable{

            private String key;
            private String id;
            private String id_type;
            private String name;
            private String tenant_key;
        }
    }
}
